<?php

class Default_Model_About extends Zend_Db_Table {

    protected $_name = 'about';
    protected $_primary = 'id';

    public function infoAbout($arrParam = null, $option = null) {
        $db = Zend_Registry::get('connectDb');
        $lang = $arrParam['lang'];
        if (isset($lang) && $lang == 'en') {
            $select = $db->select()
                    ->from('about AS a', array('id', 'en_content', 'image', 'status'))
                    ->where('status = ?','1');
            $result = $db->fetchAll($select);
        } else {
            $select = $db->select()
                    ->from('about AS a', array('id', 'vi_content', 'image', 'status'))
                    ->where('status = ?','1');
            $result = $db->fetchAll($select);
        }

        return $result;
    }

}